<!--#include virtual="/dzps/p1.asp"-->
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <%
    sessionExpire
	easp.include "h.asp"
    vas "declareTele",session("username")
    %>
    <link rel="stylesheet" href="/dzps/src/layuiadmin/style/login.css" media="all">
    <link rel="stylesheet" href="/dzps/src/layuiadmin/style/pat_post.css" media="all">
</head>
<body>
    <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
        <div class="layadmin-user-login-main">
            <div class="layadmin-user-login-box layadmin-user-login-header">
                <h2>湖南省中医药研究院附属医院</h2>
                <p></p>
            </div>
            <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
 <%
    blockquote("医患沟通")
    s1 "select questionDescription from log1 where id={log1_id:int}"
    blockquote2(val("questionDescription"))
    input_h "log1_id"
%>
        <div class="layui-form-item">
            <textarea name="title" placeholder="请发表您的回复，最少10个字" lay-verify="required" class="layui-textarea"></textarea>
        </div>
        <div class="layui-form-item">
            <label class="layadmin-user-login-icon layui-icon-read"></label>
            <input type="text" id="code" name="code" id="code" lay-verify="" placeholder="验证码" class="layui-input">
        </div>
        <img class="divRight" id="checkcode" src="/dzps/AsaiCodeS1/EESaiCodeImgS/?code.jpg" alt="看不清楚？请点击刷新！" onClick="this.src=this.src+'?'+Math.random();">
        <%
        echo js1("btn1.html","reply_submit","提  交")            
        %>
       
            <div class="layui-card">
                <div class="layui-card-header">既往回复</div>
                <div class="layui-card-body">
                    <ul class="layuiadmin-card-status layuiadmin-home2-usernote">
                        <div class="layui-collapse" lay-accordion lay-filter="cd1">
                        </div>
                    </ul>
                </div>
            </div>
            </div>
        </div>
    </div>
    </div>
    <div class="layui-trans layadmin-user-login-footer">
        <p>© 2021 <a href="http://" target="_blank">湖南省中医药研究院附属医院</a></p>
    </div>
    <script src="/dzps/src/layuiadmin/layui/layui.js"></script>
    <script>
        layui.config({
            base: '/dzps/src/layuiadmin/' 
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'user','upload'], function() {
            var $ = layui.$,
                form = layui.form,
                admin = layui.admin,
                upload = layui.upload;
 
            
            admin.events.rnn = function(othis){
                var $ = layui.$;
                var nid = othis.data('id');
                window.location.href ="pat_p_1.asp";
            };

        $.ajax({
                url:'pj2.asp?action=div_data_reply&log1_id=<%=val("log1_id")%>',
                success:function(res){
                    $('div.layui-collapse').html(res);
                },
                error:function(error){
                    alert('数据加载失败');
                }
            });            
        form.on('submit(reply_submit)', function(obj) {
            var field = obj.field;
            admin.req({
                url: 'pj2.asp?action=reply_post_add&now=' + new Date().getTime() + '&log1_id=<%=val("log1_id")%>',
                data: field,
                done: function(res) {
                    layer.msg(res.msg, {
                        offset: '15px',
                        icon: 1,
                        time: 1000
                    }, function() {
                        location.reload();
                    });
                }
            });
            return false;
        });
            });
    </script>
</body>
</html>